package com.yongbao.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yongbao.common.PageInfo;
import com.yongbao.model.domain.DishOrderSubDO;
import com.yongbao.model.request.DishOrderSubRequest;
import com.yongbao.model.request.DishOrderSubStatisticsRequest;
import com.yongbao.model.vo.DishOrderSubVO;
import com.yongbao.model.vo.manual.DishOrderSubAddressStatisticsVO;
import com.yongbao.model.vo.manual.DishOrderSubAreaStatisticsVO;
import com.yongbao.model.vo.manual.DishOrderSubStreetStatisticsVO;

import java.util.List;

/**
 * @author zhanghong
 */
public interface DishOrderSubService extends IService<DishOrderSubDO> {

    /**
     * 根据主键查询
     * @param id
     * @return
     */
    DishOrderSubVO getByKey(long id);
    /**
     * 分页查询，手动分页
     * @param request
     * @return
     */
    PageInfo<DishOrderSubVO> pageQuery(DishOrderSubRequest request);
    /**
     * 列表查询
     * @param request
     * @return
     */
    List<DishOrderSubVO> listQuery(DishOrderSubRequest request);
    /**
     * 新增
     * @param request
     * @return
     */
    Boolean add(DishOrderSubRequest request);
    /**
     * 根据主键更新
     * @param request
     * @return
     */
    Boolean updateByKey(DishOrderSubRequest request);
    /**
     * 根据主键删除
     * @param ids
     * @return
     */
    Boolean delByIds(String ids);

    /**
     * 区域统计
     * @param request
     * @return
     */
    DishOrderSubAreaStatisticsVO areaStatistics(DishOrderSubStatisticsRequest request);

    /**
     * 街道统计
     * @param request
     * @return
     */
    List<DishOrderSubStreetStatisticsVO> streetStatistics(DishOrderSubStatisticsRequest request);

    /**
     * 查询地址统计
     * @param request
     * @return
     */
    List<DishOrderSubAddressStatisticsVO> addressStatistics(DishOrderSubStatisticsRequest request);
}
